package com.tencreat.domain.pt;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

import com.tencreat.common.core.domain.BaseEntity;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 拼团详情对象 mall_pt_users
 *
 * @author tencreat
 * @date 2021-11-08
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_pt_users")
public class MallPtUsers extends BaseEntity<MallPtUsers>{
    private static final long serialVersionUID = 1L;


    /** 拼团详情编号 */
    @TableId(type = IdType.AUTO)
    private Long id;


    /** 用户编号uuid */
    @Excel(name = "用户编号uuid")
    @ApiModelProperty(value= "用户编号uuid")
    @TableField("`uuid`")
    private Long uuid;


    /** 是否中奖 */
    @Excel(name = "是否中奖")
    @ApiModelProperty(value= "是否中奖 1拼中,2未拼中,3待开奖")
    @TableField("`is_lottery`")
    private Integer isLottery;

    /**
     * 内部中奖状态 1必中，2选定，3待选择
     */
    @Excel(name = "内部中奖状态 1必中，2选定，3待选择")
    @ApiModelProperty(value= "内部中奖状态 1必中，2选定，3待选择")
    @TableField("`internal_lottery`")
    private Integer internalLottery;


    /** 订单id */
    @Excel(name = "订单编号")
    @ApiModelProperty(value= "订单编号")
    @TableField("`order_sn`")
    private String orderSn;


    /** 拼团id */
    @Excel(name = "拼团id")
    @ApiModelProperty(value= "拼团id")
    @TableField("`pt_id`")
    private Integer ptId;

    /** 商品id */
    @Excel(name = "商品id")
    @ApiModelProperty(value= "商品id")
    @TableField("`goods_id`")
    private Long goodsId;

    /** 兑换或者发货 */
    @Excel(name = "兑换或者发货")
    @ApiModelProperty(value= "兑换或者发货")
    @TableField("`exchange_and_ship`")
    private String exchangeAndShip;


    /**
     * 收货地址id
     */
    @Excel(name = "收货地址id")
    @TableField("`address_id`")
    @ApiModelProperty(value = "收货地址id")
    private Integer addressId;


    /**
     * 是否现金券参与 1是,2否
     */
    @Excel(name = "是否现金券参与 1是,2否")
    @ApiModelProperty(value= "是否现金券参与 1是,2否")
    @TableField("`join_type`")
    private Integer joinType;


    /**
     * 收益(只有未拼中用户才会有收益)
     */
    @Excel(name = "收益(只有未拼中用户才会有收益)")
    @ApiModelProperty(value= "收益(只有未拼中用户才会有收益)")
    @TableField("`earnings`")
    private BigDecimal earnings;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private Integer delFlag;



    /** 租户id */
    @Excel(name = "租户id")
    @ApiModelProperty(value= "租户id")
    @TableField("`tenant_id`")
    private Long tenantId;


}
